Fix touchpad pan gesture suppressed when editing masks#21490
Conversation
A two-finger scroll (no CTRL) fell through to zoom whenever a mask overlay was visible, even with the pointer off the mask. gesture_pan now declines the pan only when the scroll would actually be consumed by the mask (pointer over a shape, or creating a size-adjustable shape) via the new dt_masks_scroll_over_mask() predicate. Elsewhere on the canvas, and while drawing a path (which has no scroll-adjustable parameter during creation), the scroll pans the image as expected.
|
@TurboGit I think this one qualifies for a 5.6.1, given that touchpad gestures were (properly) introduced in that release. |
|
Does this code correctly result in zooming while holding down the 'a' key even when the pointer is over a shape? |
It does, with mouse wheel scroll gesture. On the touchpad the pointer is freezing as soon as "a" is pressed and all touchpad gestures ignored. It this how it should behave? I wasn't even aware of this alternative behavior using the "a" key. |
|
@TurboGit where do you want me to put release notes? |
|
In RELEASE_NOTES.md in branch darktable-5.6.x. You can create a PR targeting this branch or just paste the text here and I'll merge. |
|
Ah, so I'll just target develop and you're going to cherry-pick it onto the |
|
No, you cannot target develop (master) because RELEASES_NOTES.md there is for 5.8 as you noted. You need to create a specific PR with the release note entry targeting darktable-5.6.x directly. |
A two-finger scroll (no CTRL) fell through to zoom whenever a mask overlay was visible, even with the pointer off the mask. gesture_pan now declines the pan only when the scroll would actually be consumed by the mask (pointer over a shape, or creating a size-adjustable shape) via the new dt_masks_scroll_over_mask() predicate. Elsewhere on the canvas, and while drawing a path (which has no scroll-adjustable parameter during creation), the scroll pans the image as expected.
Here is the updated behavior overview:
Disclaimer: this work has been co-created with Claude.